package com.wise.servive;

import com.wise.dao.BlogDao;
import com.wise.dao.SortDao;
import com.wise.pojo.Sort;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SortService {

    @Autowired
    SortDao sortDao;

    public int findSortCountByUid(int uid){
        return sortDao.findSortCountByUid(uid);
    }

    public List<Sort> findSortByUid(int uid){
        return sortDao.findSortByUid(uid);
    }

}
